<style>
    .layui-table-page{
        text-align: right;
    }
</style>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <table class="layui-hide" id="table-data" lay-filter="table-data" style="overflow-x:scroll;"></table>
        </div>
    </div>
</div>
<script>
    layui.use(['laypage', 'layer', 'form', 'laydate', 'table'], function () {
        var laypage = layui.laypage,
                frm = layui.form,
                laydate = layui.laydate,
                layer = layui.layer,
                table = layui.table;

        //var tableObj = table.render({});
        table.render({
            elem: '#table-data'
            , url: '<?= $base_url ?>'
                    //, toolbar: '#table-toolbar'
                    //, title: '<?= $navName ?>'
            , size: 'sm'
            , cellMinWidth: 100
            , height: 200
            , cols: [[
                    {field: 'order_no', title: '订单号', fixed: 'left', width: 140}
                    , {field: 'status_name', title: '订单状态'}
                    , {field: 'c_car_number', title: '车牌号'}
                    , {field: 'total_yingshou', title: '应收'}
                    , {field: 'total_yingfu', title: '应付'}
                    , {field: 'total_yishou', title: '已收'}
                    , {field: 'total_yifu', title: '已付'}
                    , {field: 'total_jiayou', title: '加油'}
                    , {field: 'total_mileage', title: '公里数'}
                    , {field: 'meiri_mileage', title: '每日公里'}
                    , {field: 'youhao', title: '油耗'}
                    , {field: 'total_lirun', title: '总利润'}
                    , {field: 'meiri_lirun', title: '每日利润'}
                    , {field: 'total_zhuangzaishi', title: '装货时间(天)'}
                    , {field: 'total_xiehuoshi', title: '卸货时间(天)'}
                    , {field: 'total_xingshi', title: '行驶时间(天)'}
                    , {field: 'total_haoshi', title: '总耗时(天)'}
                    , {field: 'setting_off_at_alias', title: '发车时间'}
                    , {field: 'arrived_at_alias', title: '到达提货点时间', width: 120}
                    , {field: 'loading_at_alias', title: '开始装载时间', width: 110}
                    , {field: 'delivering_at_alias', title: '装载完成时间', width: 110}
                    , {field: 'at_delivery_at_alias', title: '到达送货点时间', width: 120}
                    , {field: 'off_loading_at_alias', title: '开始卸货时间', width: 110}
                    , {field: 'completed_at_alias', title: '卸货完成时间', width: 110}
                    , {field: 'org_tag', title: '提货点'}
                    , {field: 'dest_tag', title: '卸货点'}
                    , {field: 'ct_cmp_bf', title: '客户'}
                    , {field: 'order_date_alias', title: '订单日期'}
                    , {field: 'type_name', title: '订单类型'}
                    , {field: 'goods_name', title: '货名'}
                    , {field: 'weight', title: '重量(吨)'}
                    , {field: 'xianghao_tag', title: '箱号'}
                    , {field: 'remark', title: '备注/要求'}
                    , {field: 'diaodu_truename', title: '调度'}
                    , {field: 'cwjl_truename', title: '车务经理'}
                    , {field: 'c_car_type_name', title: '车型'}
                    , {field: 'zhujia_driver_name', title: '主驾'}
                    , {field: 'zhujia_tel', title: '主驾手机'}
                    , {field: 'fujia_driver_name', title: '副驾'}
                    , {field: 'fujia_tel', title: '副驾手机'}
                    , {field: 'created_at_alias', title: '创建时间', width: 150}
                    , {field: 'updated_at_alias', title: '更新时间', width: 150}
                ]]
        });
    });
</script>

